[BUGFIX] Resolve strict type assertion in RecordStateFactory