Handle conversion of @extend