Retrieving code for properties __name__, __discoverable__ and __cod__ are identical.  Please have a common `bt_device_get_property` function, move it to _hw/bt.c_, and have its function prototype in _hw/bt.h_.