code: def map_legacy_frequencies(form, field):
      ''' Map legacy frequencies to new ones'''
      if field.data in LEGACY_FREQUENCIES:
          field.data = LEGACY_FREQUENCIES[field.dataf map_legacy_frequencies(form, field):
      ''' Map legacy frequencies to new ones'''
      if field.data in LEGACY_FREQUENCIES:
          field.data = LEGACY_FREQUENCIES[field.data]
docs: Map legacy frequencies to new ones