There is no real elegant way to do it. But either way you can free up the ip licenses for use elsewhere.