Clean up chunking code and samples.