Remove unused variables/attributes