Eliminate superfluous carry_index variable.