Problem
from_str in the manifest module performs two rendering passes with similar setup, creating duplication in the variable extraction logic.
Proposed Solution
Extract the first-pass variable extraction into a helper function to:
- Make the function more readable
- Enable reusability
- Reduce duplication between passes
Context