Move utility functions to their own include file.