Revert "Reduce copy&paste in PartitionDxe/Gpt"

This reverts commit 8fc07ba386c230bf776afcb4790a187351bdf5bf.