Remove unnecessary variables.