This would be much simpler if we had a `ReportsSize` interface (with a better name?):
```
if (view instanceof ReportsSize) {
  return ((ReportsSize) view).getSize();
} else {
  return DEFAULT_DATASET_SIZE;
}
```