Move Bluetooth module communication code to a new class