removes hard dependency on mongoid