I would give these two `defs` explicit return types, given that this class is to be an extension point.