interface: reduce duplicate code in the interface-output node