Remove unnecessary instance variables.