Input (grade 13): Seppuku eventually became a key part of bushido, the code of the samurai warriors; it was used by warriors to avoid falling into enemy hands, and to attenuate shame and avoid possible torture.
Output (grade 12): Seppuku was a key part of bushido, the code of the samurai warriors; it was used by warriors so that they would not fall into enemy hands and be ashamed.