Revert "Add a funciton to get the segment name of a section."