Remove redundant expect() statements.