Refactor write_grand_totals_row().