Remove variable declarations from within function.