Cleanup CDF code.