Removing duplicate snippets