Move var closer to where it's used.