It may be worth investigating at some point whether the following Stack Overflow answer offers interesting possible additions for Contrib: https://stackoverflow.com/a/66601480/1166087