Re-refine aggregate functions.