Refactor upload_nuget_package_file in NuGet upload API

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

In !128269 (merged), a new service was introduced to check the duplicates in the NuGet packages upload. The API class ends up calling 3 different services for #upload_nuget_package_file:

  • Packages::Nuget::CheckDuplicatesService
  • Packages::CreateTemporaryPackageService
  • Packages::CreatePackageFileService

That's a tad too much. We need to refactor this part:

  • Have a single service to orchestrate the duplication check, temp package, and package file creation or
  • Split it into additional functions.
Edited by 🤖 GitLab Bot 🤖