isl/format: Break the guts of has_[us]int_channel into a helper