Use EntityStateAttribute enum in statistics (#175957)