Prefer `reduce` over `inject`

`reduce` is gaining popularity in ruby and provides symmetry with our
recommendation to use `map`.