Remove the variables that are the same as the parent.