Use return value of initialisation function in module initializer