I'm not familiar with the plugin/code that generates your lists, but where it comes to providing the subcategory(ies) it should be possibly to do a test like (if category != x && category != y) then do the subcategory(ies) portion of the routine. Where x is the first category id to be omitted, and y is the second. The "code" provided is not properly formatted to implement but is more of a concept.