Group match rules by their interface.