Refactor a clean Filter method.