I don't this would be worth it - a function that worked here wouldn't work anywhere else in the code because the other places already have the route header in their hands, or are also checking that the route header is local (which isn't required at the I-CSCF).