renameSources = (sources, compartmentRenames) => {
  return fromEntries(
    entries(sources).map(([name, compartmentSources]) => [
      compartmentRenames[name],
      compartmentSources,
    ]),
  );
}
@param {Sources} sources
@param {Record<string, string>} compartmentRenames
@returns {Sources}