Remove unused sections when upgrading config