Cleaning up snippets