Remove redundant chains.