[CDE-402]: refactored i18n support code used in 3 endpoints to new method