remove a redundant stage.