refactor($parse): simplifying multi-statement execution

Part of #8901