Use modern scope names for hooks.