make the code from sortingmachinery.dm a global proc and have the sorting machine and mailsuit use that proc.