Remove unnecessary classes and methods from energy API.