Change the remaining spots of code to use the new promise.reduce syntax