Update use of PreferencesManager to remove deprecation warnings