Revert "Set active environment frame during Procedure extent"

This reverts commit d8d6e33ac7b874410703b760e3149aed817c6a67.
Revert "Add an interface for push/popping child frames of environments"

This reverts commit bd1cd97d3bb18bf475aed20c2fcf04aed9b232a2.
Revert "Make procedure generation capture a child of the current environment"

This reverts commit 226916690b2d98b26115ae5bd6acc11050ce7842.
Fix rule based transform