Could we cut this function out and just call apply_typecasts directly from `algorithms.website:typecast_virtualrequestpath_in_place`?