Use state prototypes instead of state factories.