In cases of transfer the prescripts of can. 1747 are to be applied, canonical equity is to be observed, and the salvation of souls, which must always be the supreme law in the Church, is to be kept before one’s eyes.
Source: Code of Canon Law (Vatican.va)