Errors module has a reference to the SystemStats module, which results in client having to be linked against the whole code base. This is the dependency chain:
Client -> Errors -> SystemStats -> Everything else.
The callbacks should be removed and the appropriate information should be read by the statistics module.