Extract methods to LocaleUtils class