Replace `inject` to `each_with_object`