refactor and remove GlobalSettings.kem

**please review**