alternate implementation to #1602 that doesn't involve two conditionals per filter
Merge pull request #1605 from rspec/alternate_implementation_to_1602

Alternate 1602 implementation