nuts_and_bolts: simplify 3-way partition