Reorganize hooks.