The "Packages" application can be uninstalled on http://phorge.localhost/applications/view/PhabricatorPackagesApplication/.
Once uninstalled, I'd expect the query form fields on http://phorge.localhost/diffusion/commit/ not to expose a PhabricatorSearchDatasourceField labeled "Packages" anymore.
Could likely check for id(new PhabricatorPackagesApplication())->isInstalled() but no idea how to best do that within an array definition without duplicating lots of code: https://we.phorge.it/source/phorge/browse/master/src/applications/audit/query/PhabricatorCommitSearchEngine.php$115-122
Ternary operator cannot be applied to an additional single ->setIsHidden(true) line...
Ideas welcome.