abuse: fix and modernize

Closes https://github.com/Homebrew/homebrew/issues/27071.