Refactoring and simplificaiton of the symbols hierarchy class.