Get rid of Cosmos in favor of generic SafeGlobal