Support for rewriting legacy controller hooks.