One option to add this directly into toolbx upstream is to split the logic into a library that is pulled by toolbx and kept here for this binary.