Remove redundant parts.