Get rid of global Cosmos