Move double $wgOut globals to the top, remove $wgLang duplicated global.