Fix priorities to work with partial matches.

Do not delete all lower priority snippets, only those that are defined
elsewhere too.