Eliminate redundant vars.