fix a layering violation by moving SectionKind out to its own header.