if (!group) {
        return makeSpan();
    }
buildGroup is the function that takes a group and calls the correct groupType
function for it. It also handles the interaction of size and style changes
between parents and children.