def find_base_transform(transform):
    """Given a domain transform, find its base class"""
    for base in transform.__bases__:
        if hasattr(base, 'domain'):
            return base
    name = transform.__name__
    raise TypeError('{} is not a domain transform'.format(name))
