Genericize defaults function into merge utility

We're gonna use this shortly for the data field