refactor and remove GlobalSettings.kem

**please review**
this is the exact same code that was there before, just routed through KExceptionManager instead of Error. I'd rather not touch it at all. I assume this is happening because it's a checked exception thrown by one of the methods in the try block, though.