That's basically style, so up to you. My general opinion on the matter is that I prefer less global functions until there specifically is a place to reuse them, because IMO it makes code easier to follow (with a global function, you need to grep to see where and how many times is used). 

This said, would you prefer a global function in this same module, or somewhere else?