vbscript: Split named item lookup into a helper function.