Revert "[export] Get export APIs ready for PTC (#110410)"
This reverts commit b96ea9f361f2ed872c4a7d662427cadec345b702.
Reverted https://github.com/pytorch/pytorch/pull/110410 on behalf of https://github.com/facebook-github-bot due to Diff reverted internally ([comment](https://github.com/pytorch/pytorch/pull/110410#issuecomment-1757017249))