Migrate GPDevice and GPPreference to common GBDeviceUtils and GBPreference