Separate out bus-scanning and device-probing logic.