Removal of duplicate C++ and the annoyingly large snippets