I don't think we would be reusing this type of function anywhere else so an API seems unnecessary. I'll see what can happen in terms of consolidating these though.