[cleanup] Move filtering related classes to their own package