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