Fix rewriteLegacyHooks on Route instances too...

- Issue #511