Remove redundant assetions.