Removing multiple interations over collection

In doing #map then #reject the collection is being iterated over
twice. By moving to #each_with_object, there is one less interation.