def _get_to_field(field):
    """
    Extract remote field with which model had relation.
    """
    remote_side = getattr(field, 'remote_side', None)
    return list(remote_side)[0] if remote_side else None
