Simplify printBonds logic.