Fix: Duplicate class realms in case of module builds.