model: get_last_conflict - replace if/else-if block with switch