Simplify Run#_set_all_ports.

There was some code duplication which made the whole thing look overly complex.