widgets: battery: refactored to use new helpers