Remove unused getLocalizedType

Bad code since it was using global state and doing something that is not the responsibility of Entity

Change-Id: I2bc242e8d21e99cc11fdd4d7020000ed7bc53940
Merge "Remove unused getLocalizedType"