CLC-2401 Extract lookup_student_id function

Resolving TODO from https://jira.media.berkeley.edu/jira/browse/CLC-2401