Stop using #each_with_object to maintain 1.8 support