We don't need to copy this method as it is already inherited from `NamedBase` so we can access all methods of `NamedBase` class. Removed the duplicate code.