Refactoring, cleanup and attempt at set_translation_start.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>