Removes unused accessors and class variable