Optimizing Card Migration, Integration & Scheme Certification with TerrA