I'd suggest moving this and other stuff to another file and including it in files that are using it. Though,  you'll need to make them `extern` in order to do this. Will visibility `hidden` work for this?