Refactoring of extract_locale method