Remove unnecessary hooks.