Move the ReferenceNumber code from the project