This code using Requires.jl could be upgraded to use the new package extension mechanism: https://github.com/mcabbott/TransmuteDims.jl/blob/master/src/TransmuteDims.jl#L564-L577 (Could copy for instance in https://github.com/mcabbott/Tullio.jl/pull/170)