Removes unused/test code from p12.