Now that the minimum version is macOS 10.13, we can use the new API. This reverts commit f97a64aa9b.
f97a64aa9b