refactoring Translate Adapter File to use new config structure and code less complex