Remove all magic port numbers.