Tiny refactoring of PatternDesc