remove unused variables in react transformer