use EntityTableFactory in other files.