Remove unnecessary calls to GroupTree.headSum.