Split ITSDocStats out from its table model
Refactoring of ITS stats code to simplify + add unittests
Make provenance stats constants an enum