I’d rather go with a gas fired tankless, but breaking out the individual lines would be a *itch.
Why do you have to do anything with the lines?
Manifold, with PEX.