Refactoring filters patterns.