Reinventing the wheel... there's the fantastic Calamares Installer Framework which solves exactly this problem:
https://calamares.io/
Canonical is notorious for doing this. The silver lining in this case is that they aren't reinventing all of the pieces of the wheel..
Yea, Calamares is a really cool project. It's a shame Canonical isn't using it.