Remove the vars which are the same as the parent.