Add EntityType.field(EntityName) for referencing another entity.
Remove unused code.