[Interop] merge similar branch in switch