If you do not wish for an assignment to contribute to the calculation of a category grade, then give it a weight of zero (0.0). Zero weight assignments will be skipped when computing the category grades.
In the same way, a category can be skipped when computing the subject grade by giving the category a weight of zero.