not sure has it been changed, but before you trade your old ship away , sell modules at first- via outfitting you going to get 100% back on modules, but direct trade-in will give you 90%
somebody correct me please if it's not the case anymore
besides if you sell module at first, you'll be able to buyback it for new ship (if it's worth doing that)