Refactor translate sandbox manage code

Change-Id: Ia1024c47ade68329dd0f8079b592558fbf297d2b