`filter = comparison[ ruleFilter ]` should be able to remove the switch