def _factory(app): conf = global_config.copy() conf.update(local_config) return cls(app, **local_config)