[US20] move battery_sensor methods to specific cpp file