Since this has no dependencies on classes, can you put it in a separate utility module? It really should be a separate library that Racket provides.