fixup! Add a better infrastructure for legacy hooks
TODOs

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>