Clean up triple generation