Revert "[torchgen] Let native function declaration generation logic take a callable (#90590)"
This reverts commit de6beca838a4ff8f08ec2f51934f8c35cf5260ce.
Reverted https://github.com/pytorch/pytorch/pull/90590 on behalf of https://github.com/seemethere due to Causes internal failures, see https://www.internalfb.com/intern/sandcastle/job/4503600464398605/insights