Refactoring in ClassDefinitionImpl. Remove unnecessary linked list.