I think `newmodule` should probably handle this logic.