Remove extraneous statements.