Remove class name from snippets for class methods