extract into ensure_package_bs_dir_exists or similar