Refactor implementation on validation check in translationservice