I think s/local/local_uri/g would be better for these two functions.