Consolidate YAML front-matter reading into one helper