How about just declaring it in the block its used?

Gets confusing to scroll up dozens of lines to figureout it is only ever used in one specific block.
This function is crowded enough already.