Move functions from 'types.ts' to 'utilities.ts'.