Clean up the result tables.