The gap in Legionella control isn't the pipe. It's the shower head.

Safe Shower seals the outlet the moment water stops, and disinfects the stagnant water — continuously.