refactor and remove GlobalSettings.kem