Extract main EnergyAddCommand code to EnergyChangeCommand class