Remove useless hook settings.