flow: merge multiple case statements in a row together