Using store code reduce complexity when dealing with configuration on multiple environments. Write a BC setup to migrate old configs to new ones (ids to codes). Write an observer to update the settings when a store code is modified.