Remove useless parent references