Removing mongoid 3.0 dependency.