Remove useless handlers.