Cleanup: Move var inside function

It was not used in any other place, so this makes clearer that can be
removed with no side effects.