There are still two states where you always get full-service gas, and if you are old enough, that used to be the standard.
I was envisioning something like a gas jockey, but with a specialized fork lift.
Plus, the batteries don’t go in the engine compartment. They would be analogous to a gas tank. Suppose they went in the back of the car, low down, under the trunk.