from typing import Match


def default_colbuilder(x, y):
    """ Uses `Match` payload attribute to extract a default colbuider
    """
    if not isinstance(y[0], Match):
        raise TypeError(
            "a default colbuilder can be only found when arguments are of type Match and have a `default_colbuilder`"
        )

    colbuilder = y[0].payload['default_colbuilder']

    return colbuilder(x, y[0].value)