Migrated another set of hooks to the new `define-hook` method.
Forgot to remove unnecessary debug output.