On Sep 5, 2024, at 11:28 AM, Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors <bug-gnu-emacs@gnu.org> wrote:

As far as I know, multiple packages define a similar formatting function, such that we
could potentially get some code reuse. 

Definitely agree.  See bug#71572, which includes such a formatting function, heavily discussed, but not yet merged.