Remove mongoid 3 dependency