Atomic/Mongoid operations refactor