Remove from tree with merge algorithm prior refactoring
After Refactoring