Hopefully that shouldn't be the case, and should actually lead to more modular and better maintainable code. If needed a package can be forked, but even then code can be shared, but that could be the worst case scenario.
Here are the packages used by Chromium, as an example: <https://www.chromium.org/chromium-os/packages/>