Refactoring of parent nodes