Extract method and reformat code.

Pass in BreakingStrategy instances from tests.