Revert "[aot autograd] refactor to make functionalization self-contained (#96341)"
This reverts commit 3cd9c7a16d8b19c28d12bf5b56a8a7c20405476a.
Reverted https://github.com/pytorch/pytorch/pull/96341 on behalf of https://github.com/DanilBaibak due to Break internal build