Move defaults/setDefaults to core