Removes useless hooks