Refactor: replace `partition` with `reject` as selected elements are not used

It's unnecessary to use `Enumerable#partition` when you're only using the elements where the predicate is false.