Moves static variable to local