Replace the giant state deftype with a simple map.