Merge "Refactor PermissionsState to be a data class for migration."