refactor and remove GlobalSettings.kem

**please review**
Why are you catching an error?
Please rename if indeed this is what you are trying to do.