AdmExporter: refactor port creation

Courtesy MMS