refactor and remove GlobalSettings.kem

**please review**
Is this how you handle warnings?