code: def before_reject(analysis):
      
      worksheet = analysis.getWorksheet()
      if not worksheet:
          return
  
      # Rejection of a routine analysis causes the removal of their duplicates
      for dup in worksheet.get_duplicates_for(analysis):
          doActionFor(dup, "unassign")
docs: Function triggered before 'unassign' transition takes place