Improve the coherence of this text:
Upon the partition of British India in 1947 into the two new independent dominions of India and Pakistan, the India Office was closed down.
Upon the partition of British India in 1947 into the new independent dominion of India of the India Office was closed down.