Internal refactoring - statedefinitions no longer store view ids.