"I am using nRF Connect SDK (NCS) v3.1.0 and developed BLE DFU functionality by referencing the Nordic Semiconductor Academy course: 'Exercise 5: FOTA over Bluetooth Low Energy'. However, I now want this DFU functionality to be enabled only when the device is in a specific operating mode. How should I implement this?"