Split out some logic from FeedBooleanCriteria into a method and added tests