def mk_rule_key(rule):
  """ Convert a rule tuple to a hyphen-separated string.
  """
  return '{}-{}-{}-{}'.format(rule.source_institution,
                              rule.destination_institution,
                              rule.subject_area,
                              rule.group_number)