Inherit from Base instead of NamedBase in generator