Refactor mongo mapper to receive config as parameter