CDB-1788 refactor to move to independant service, as it will be used both from importer and synchronizer service