[PATCH v2 2/2] header-zone: refactor hook_config_destroy