I think your approach is correct.
The only thing you need a list of parameters you don’t want in your families.
Then you can filter this list against the output of the “parameter.parameters” node.
An example of the Filter (BoolMask) can be found in the topic below.