Moving translate same logic in different method

Change-Id: I9870377fb41e6da1c7ed15d390a82216c4306109
Merge "Moving translate same logic in different method"