Used the factory pattern to address an issue with the MongoConfigInfo object
Rev'd version