This will allow all generators to share an implementation for actually writing out the module map formats.