Where should I put generic utility code?

This exactly, there is a folder for functions that you can call from anywhere