Moved CachedPreference and BoolCachedPreference into preferences.dart