Use top-level function safety wrapper

to avoid declaring “GistMoreUrl” variable globally