Make the `nameOfEntity` class method part of a protocol, not an interface