Are you sure this won't fail when coming in through `module_render`? It seems like above you're passing through a `location.to_deprecated_string` up there expecting it to be a `Location` here.