Mower battery refactoring