usb-dfu: better modularization