I believe these should be moved into struct libbitfury_device in some form.