There's already a small market for this in classic cars and they've worked most of these things out even to the point of installing heated seats, writing their own software, making and selling kits for common target cars etc.
It's just mostly based on salvaged Tesla motors and batteries as far as I can tell.
(I think Jaguar and Ford talked about selling EV crate engines for their older models but I've not heard about that for a while)