When doing db cleanup, consider package references stored in PublishedRepos
of local repo publishes. #146