What do you recommend? Frankly, I think this logic should not be put outside of this file, I see it as "local".