remove Mongoid-specific code