Refactored the creation of the ChargepointService