Clean up unused code snippets