REL-1865: Moved some external report specific code from TypeCheck to QueueProgramStatusExternalTable.
REL-1865: Code cleanup.