Using custom handler to inject external yaml content into AST
Removes unused functions
Extracted stack adjustment to its own function