I'm not sure what you're concerned about. As the documentation says, there is only one "via" mask layer, and that gets divided up by the foundry, presumably by using the same mask to do the bottom half of the via, then processing the ReRAM layers, then using the same mask again to do the top half of the vias. You can't get it backwards.