Slightly simplify output port code generation