def composite(rdef):
    """ Return the `composite` eschema of a relation definition """
    if rdef.composite is None:
        return None
    return rdef.subject if rdef.composite == 'subject' else rdef.object
