Move package_provider logic into params class