move sequence_id_for to class method