snippet refactor