Remove unneeded variables.