You removed the security device in order to steal the merchandise. That's all it takes to be guilty of either retail fraud or the other offense of removing a security device with the intent to steal.