This breaks some API generation and isn't actually required.
Similarly to HOMEBREW_PREFIX_PLACEHOLDER, this allows the substitution of HOMEBREW_CELLAR in JSON output when using the API. Fixes #15668.
This turns the ability to replace common paths with placeholders into a mixin that can be used with both Casks and Formulae. The idea here is to make formula hash generation more consistent.