```\nfunction switchMaintainerFee(\n DataStoreUtils.DataStore storage DATASTORE,\n uint256 id,\n uint256 newFee\n) external {\n DATASTORE.writeUintForId(\n id,\n "priorFee",\n DATASTORE.readUintForId(id, "fee")\n );\n DATASTORE.writeUintForId(\n id,\n "feeSwitch",\n block.timestamp + FEE\_SWITCH\_LATENCY\n );\n DATASTORE.writeUintForId(id, "fee", newFee);\n\n emit MaintainerFeeSwitched(\n id,\n newFee,\n block.timestamp + FEE\_SWITCH\_LATENCY\n );\n}\n```\n