wow, a whole file with not even an _inline_ comment? A lot of this is decently perspicuous, but some of it isn't (what does `moveFilterClasses` do, exactly?). Document it better.