Allow setting nil for nested attributes
Comment showing duplicate code