deprecate brew-which

Closes #30311.