Rename reference->code for consistency