Refactored internal translator implementation