Simplify section parsing logic