As a matter of style, I prefer these type of functions to be static when only used locally.  i.e. pass in the URL.