finally remove the external hook API because we never used it AFAIK in any real project until now (it was not even well documented)