Mongoid refactor