Don't use legacyOpts anymore.