Removes unneeded variable and whitespace.