I'll just dump it in a function, I think that works fine and there's no reason to make it more complicated right now.