Move util files to cosmo-utils to remove circular dependencies