def __split_flavor(flavor):
    """
    Split a flavor into type and subtype.

    :param flavor: The flavor to split
    :type flavor: str
    :return: type, subtype
    :rtype: str, str
    :raise: ValueError
    """
    flavor_types = flavor.split("/")
    if len(flavor_types) != 2:
        raise ValueError("Invalid flavor")

    flavor_type = flavor_types[0]
    flavor_subtype = flavor_types[1]
    return flavor_type, flavor_subtype