When possible I stick helper functions near their users. Especially in this case that is used only by one function. Would be OK to keep it here?