Mapping size is larger than 10MB - Why is it hardcoded?

Good day all,

I checked mappings.js in the latest OpenSearch Dashboards source code and I found the following (line 323). Apparently, the maximum number of fields fetched is hardcoded to 10MB. Is there a reason for this? And will this be replaced with a configuration instead?

if (mappings) {
const maxMappingSize = mappings[0].length > 10 * 1024 * 1024;
if (maxMappingSize) {
console.warn(
Mapping size is larger than 10MB (${mappings[0].length / 1024 / 1024} MB). Ignoring...
);
mappingsResponse = ‘[{}]’;
} else {
mappingsResponse = mappings[0];
}
loadMappings(JSON.parse(mappingsResponse));
}