Remove unused 'reflection' dependency and unused imports.