Moved categorylist functionality into CRData and made all the
computation private.