3rd part code... A clean way would be to rewrite from scratch.