Convert extension from SIP to PJSIP and vice versa?

Is there a convenient way to convert an extension chan type?
Is it possible to do this in bulk?

Previously I did an export of the extension, changed the CSV from sip to PJSIP,
deleted the extensions and reimported them (and reimport the voicemail files and chown them back to asterisk)

Is there an easier way?

I’m pretty sure that’s the easiest way.

At least, it’s the easiest way I can think of. The only other way I know of is to do all of that by hand, and one-at-a-time is definitely the opposite of easier.