Refactoring MongoWorker