remove parent and childId and implement equivalent function outside of
Node class.