Remove unused variable that I missed in my rush to fix the bots
Make the variable scope narrower. No functionality change.