Code cleanup id state provider (Redis)