Refactoring: Create separate method createFilterQueryString