Clean up dynamic time-stepping code.