def normalize_es_result(es_result):
    """Turn a single ES result (relationship doc) into a normalized format."""
    return (
        ('RelationshipType', es_result['RelationshipType']),
        ('Grouping', es_result['Grouping']),
        ('ID', es_result['ID']),
        ('SourceID', es_result['Source']['ID']),
        ('TargetID', es_result['Target']['ID']),
    )