Or perhaps, avoiding wrapping altogether?

```js
var selectPreviewSize = CameraUtils.selectOptimalPreviewSize;
var pickedPreviewSize = selectPreviewSize(viewportSize, photoPreviewSizes);
```