Small localization refactor for convenience