refactor filter settings