Remove unused configurations and platforms.