Remove unused stages