Remove deprecated hooks API

It's been around for a long, long time. It's time to get rid of it.
Merge pull request #1209 from kyrylo/remove-deprecated-hooks-api

Remove deprecated hooks API