Remove unused GenerateFromCOSMOS function
(#389)