Remove mongoid dependency