Snippet refactoring.