Factored out the common API options.