code: function _parseEntity(entityType, entity) {
    switch (entityType) {
      case 'remote-application':
        return parsers.parseRemoteApplication(entity);
      case 'application':
        return parsers.parseApplication(entity);
      case 'unit':
        return parsers.parseUnit(entity);
      case 'machine':
        return parsers.parseMachine(entity);
      case 'relation':
        return parsers.parseRelation(entity);
      case 'annotation':
        return parsers.parseAnnotation(entity);
      default:
        // This is an unknown entity type so ignore it as we don't know how to
        // handle it.
        return null;
    }
  }
docs: Parse the entity response into a friendly format.
  @param {String} entityType - The type of entity.
  @param {Object} entity - The entity details.
  @returns {Object} The parsed entity.