It seems we have two similar versions of this function get_multiview_pass_id and get_pass_id. If we really need this could there be a RE_* utility function or something?