def standardize_intent(org_intent):
  """1) get ride of departure_date and return_date in the intent.
     2) also get tide of intents with 'all'. also for max_conn if val is 2.
     3) make goal a string.
     4) replace '_' with ' ' in name.
  """
  new_intent = {}
  for key in org_intent:
    if key in ['departure_date', 'return_date']:
      continue
    if org_intent[key] == 'all':
      continue
    if key == 'max_connections' and org_intent[key] == 2:
      continue
    new_intent[key] = org_intent[key]
  new_intent['goal'] = ['book', 'change', 'cancel'][new_intent['goal']]
  new_intent['name'] = new_intent['name'].replace('_', ' ').strip()

  return new_intent