Refactor global function wfBCP47 to static function LanguageCode::bcp47