Remove reference to prefs object