Replace deprecated getDefaultOptions method.