Refactor OrRule to AnyRule