Add an interface for entity factories