Why are we ignoring comment filters?  Also, at the moment, you have hardcoded just for comment filters.  Perhaps instead there should be a list of filter types which we handle specially, and ignore them all.  Currently, it would just contain comment filters, I guess.