def depersonalize_hostname(hostname):
  """Remove autopersonalization like 'Dentons-iPad', just return 'ipad'."""
  h = hostname.lower()
  if h.startswith('android'):
    return 'android'
  if 'appletv' in h or 'apple-tv' in h:
    return 'appletv'
  if 'ipad' in h:
    return 'ipad'
  if 'iphone' in h:
    return 'iphone'
  if 'ipod' in h:
    return 'ipod'
  if 'chromecast' in h:
    return 'chromecast'
  return hostname