def find_base_domain(base_transform):
    """Given a base domain transform class, find the base domain that
    it transform."""
    for base in base_transform.__bases__:
        if hasattr(base, '_parameters') and not hasattr(base, 'domain'):
            return base
    name = base_transform.__name__
    raise TypeError('{} is not a base domain transform'.format(name))
