PackageVersion.get_download_size refactor