Switches hook implementation from deprecated to preferred hook.
Old hook used.
New hook used. No functional change.