Do you think we will use this multiple times? If not.. maybe just put it inline where it is used? The signature of this whole function is not super easy to read