Split mm-classes into mm-element-classes and mm-relationship-classes.