Extraction of the preparation of the file types in a utility function