Implement priority-based clearsnippets.