Remove unneeded object and variable.