Repeated contents of ```if```. Might be more readable as ```isSubSegmentTag(elemName)``` or something descriptive of this category.