Moved localization getting method from its own class.