[common_c] Remove unused extents stuff in generate_battery_text