LabelsSpanned function

Generate the labels of the spanned factors