“Better” can be very relative. Possible alterantives:
Looks correct.
Never mind. All packages are build. But it’s not installed
The build script isn’t complex enough to only build required packages when building flavors that don’t use all packages. A lot imperfections from functionality viewpoint. That would be possible in theory but isn’t worth the added code complexity.