Refactor extremality_test using new functions plot_old_moves_diagram, plot_completion_diagram.