Configuration for MongoFactory injection