Clean up code in timestamp pivots.