Occasionally right after starting Emacs, it was possible to issue a projectile-switch-project command which ran before my hacky vertico-directory advice had been added. This should ensure the advice gets added earlier.