Replacing cardinality with separate optional and multiple flags