Add data factory for entities in the time model.
Fix const name.