Migrate profile.d logic.