Cleanup code snippets