ENH: remove unused hook feature.

Folloging a discussion with @rokern, it seems that this feature is not used anywhere. We remove the implementation of the hook feature, while keeping the CLI options and API exactly the same for the time being.