Move applyDefaults into setData instead of getData