Moving global branch to a static variable.