Extracting POS-tagged sequences. SyntaxTreeNode contains link to parent node. Refactoring.