Simplify variable assignments for _.reduceRight