Since you're only using this in one place, I don't think we need a separate function for it.