Make helper functions static.

And remove header and cpp file that are empty after that.