...so it would double the size of this function? once to declare the things and once to shuffle them around?

none of these things feel elegant to me, and I don't know what to do about it.