Convert unnecessary instance variable into local