Removing Mongoid 3.0 dependency