SnippetService refactoring.