Remove deprecated hooks API

It's been around for a long, long time. It's time to get rid of it.