Remove most testing code.