brew-mirror: rewrite and mirror formulae.

Closes #17711.