Use reject with positive test instead of filter with negative.

Thanks to feedback from @jeremy-w.