Code graphs
Turn an import cycle into a boundary question
Trace a small module cycle to the shared decision both sides really need.

The graph says cart imports promotions and promotions imports cart. A cycle is a useful prompt for a question: what information does each side need? Start with the most specific import instead of moving a whole module at once.
In a teaching example, cart calls a promotion evaluator, and the evaluator reads the current cart subtotal through an import. Decide whether the evaluator can accept the subtotal and eligible line items as data. That choice removes one direct dependency and documents how the input is used. The important review is whether the calculation still needs something hidden in the cart module.
Check behaviour before moving files
Write down two outputs the existing behaviour needs to keep. Suppose the rule requires £50 of eligible items for a £5 discount. One fixture has £50 of eligible items and returns £5. The other has £49 of eligible items and a £10 excluded item. It returns £0 even though the cart total is £59. Run both fixtures before and after moving the calculation. Produce a new graph only after verifying them. When the cycle is gone, check whether one new helper quietly imports both old modules. The clearer boundary is the useful result.