Remove redundant statements.