Refactor #get_checkin_for, thanks @nowk