private void makeConsistentWithDefaultOrThrow(SummaryField defaultField, SummaryField newField) {
        if (newField.getElementsSelector().equals(SummaryElementsSelector.selectAll()) &&
            newField.getTransform().equals(SummaryTransform.NONE)) {
            newField.setElementsSelector(defaultField.getElementsSelector());
            newField.setTransform(defaultField.getTransform());
        }
        assertEqualElementsSelector(defaultField, newField);
        assertEqualTransform(defaultField, newField);
    }
Ensure that summary field transforms for fields having the same name
are consistent across summary classes

@author bratseth
config-model/src/main/java/com/yahoo/schema/processing/SummaryConsistency.java