Use a module instead of a homegrown shim.