Refactoring
Redesign matching braces classifier.