cfg: Move hook definitions