Moved create thread id to model entity.