Use an extension function for initializing

`$wgExtensionFunctions` is not either