Actually, this should go into a Filters class or something.