Add support for migrating legacy global preferences into profiles