Moved device setting to the service.