Remove unnecessary local vars.