Removes unused instance variables. Props @nbradbury