code: private void removeCurrentFlagFromMilestone(ProductMilestone milestone) {
          ProductVersion productVersion = milestone.getProductVersion();
  
          if (productVersion.getCurrentProductMilestone() != null &&
                  productVersion.getCurrentProductMilestone().getId().equals(milestone.getId())) {
  
              productVersion.setCurrentProductMilestone(null);
              productVersionRepository.save(productVersion);
          }
      }
docs: [NCL-3112] Mark the milestone provided as not current
  
  @param milestone ProductMilestone to not be current anymore