Allow different DispatchHooks for REST and RPC dispatchers