[WIP] Refactoring FilterUtil

Work in progress

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | 
| Refs tickets  | 
| License       | MIT
| Doc PR        | 

The purpose of this PR is refactor the library to be testable and conform to "best practices" and give it more of a fluid API.