Move Cosm configuration to json config file