Document, cleanup tag filter code.