`lang_codes` and `broken_langs` can be derived from `package_metadata`, so eliminate them as parameters to simplify the function call.