Extract setting initial data into own function

That makes it possible to override.