Settings: Migrate stats opt out to global settings.

Control newly introduced global setting

Change-Id: Iea22206cd8ac8bf7d45e4b7dabfb9f0d1e602e0e
(cherry picked from commit c414ce1f8c05e580bf66682244dd5344ba426a68)