update: check if Cellar exists instead of factory.

Fixes #23881.