def _set_default_contact_form_id(contact_form_id: int, subcategory_id: int) -> int:
    """Set the default contact foem ID for switches.

    :param contact_form_id: the current contact form ID.
    :param subcategory_id: the subcategory ID of the switch with missing defaults.
    :return: _contact_form_id
    :rtype: int
    """
    if contact_form_id > 0:
        return contact_form_id

    try:
        return {
            1: 2,
            5: 3,
        }[subcategory_id]
    except KeyError:
        return 0