Auto-generate overrides to avoid infinite recursions.