dm: usb: Split hub detection into its own function