This is deep coupling, injection of handlers should optimally expect the SPI interface only, but that would mean the convertToAlias() functionality should have been moved to gateway or a separate shared legacy url alias helper class.

So unless you see a way to avoid injecting the handler here, then we should instead deal with this later. (aka: ok for now)