Removes unneeded snippets.