def METHOD_NAME(conf, db: KeyValueStorage):
    plg_conf = conf.get('plugins', 'dispatch_hook')
    return UcnkDispatchHook(
        db=db,
        bot_clients_key=plg_conf['bot_clients_key'],
        num_reports_threshold=int(plg_conf['num_reports_threshold']),
        ban_length_hours=int(plg_conf['ban_length_hours']))