"The F35 is intended to be everything to everybody."
Which apparently explains why only about 20% of the design is common to all variants. It would be interesting to compare this with say the Tornado.
Presumably this saves some supply chain costs.
Wheather it's enough to be worth the humungeously large (and still growing) development bill is another question.