refactor and remove GlobalSettings.kem

**do not review yet**