Extract code responsible for handling `startDeviceScan()` and `stopDeviceScan()` to DeviceScanningDelegate.