Remove unnecessary sub-action hooks.