If I was the OP I would walk away from his code - don't even take a copy of it. I would check with an IP lawyer what measures I would have to take to produce a "clean" copy that the University has no claim over and base whatever I did on that recommendation. At least if you do things that way you have some comeback against the lawyers.