def non_qualified_code(code):
    """
    Some codes, e.g. ISO 3166-2 subdivision codes, are compound and are formatted as
    "{country_code}-{subdivision_code}". For validation cases we often care about
    extracting the non-qualified subdivision code in such cases.

    """
    return code.split("-", 2)[1]