Remove unused dependencyFactory plugin code (#74661)
These internal APIs should not be necessary so removing them to avoid
confusion/un-necessary APIs from being used.
x-ref: [slack
thread](https://vercel.slack.com/archives/C0861RLN3AP/p1736181537629329?thread_ts=1736180335.833419&cid=C0861RLN3AP)