refactored MongoSourceandTargrtConnector to make ore readable