Move a variable out of a loop.