CSHARP-1146: Modify ReadPreference to use Optional<T> and With method.