Removes duplicated variables.