SSP-1062 Add code column to race for external sync
NOJIRA Refactor student type code for consistency and robustness