Bug 866484 - [WiFi] Use shared code for settings

See comment at Bug 866484.