Not sure if it is a good idea but you could abuse
defprotocolanddefimplto create a “dispatch protocol” that would call the appropriate module for the desired scenario.
I feel that the problem actually lies in code in lib not being loaded, but maybe this might help. Need to try it out.


















