Move merging of alignment to a central location. NFC.