Don't declare function in deep nested block.