I'm not doing that through script by any means, so that must be a new 2.0 feature the devs have added. I can see how it would be useful, if you have a spidertron or tank with equipment inside it'll get rebuilt, but I do see how it could get annoying. I can look into adding a setting for smart ghost removal if the vehicle didn't have anything in its equipment grid if you'd like, otherwise I'd say just remove the ghost yourself, even if it's annoying.