Removes a port by ID from either input or output ports.
bool removePort(String portId) { return removeInputPort(portId) || removeOutputPort(portId); }