Refactoring: Extracted common filter functions from ScetchFilter into a new base class