Slightly refactor traffic_selector_t.get_subset()