Support for RehabMan's custom AppleSmartBattery (untested), refactoring