Merge "Run framework migration on a background thread." into sc-dev