refactoring delete theme