StatEntityManager refactored.