Cleaning duplicated snippets