Remove pattern matching solutions.