Remove LegacyPromise

Depends on PRs:
- [ ] #4725.
- [ ] #4726.
- [ ] #4727.
- [ ] #4728.