Currently, when restoring packages, bacpac tries to remove everything that's manually installed on the system that isn't shown on the backup, but instead it should mark these as "installed as dependency" and then autoremove them. This way, if a package depends on another package that would be removed, then there won't be an error.