Use globals instead of WikiFactory::getVarValueByName

When getting value from a "local" wiki, it's much simpler to get it from global variable then calling WikiFactory method.