lib/classifier: Hide more of the internal data structures.