Remove unused member variable and unused imports