Break out generic utility functions into their own file.