Uplift variable declarations to outer function scope