Visibility prop without nesting

Hi,

In my schema I have a number of properties with type String. I want to set their visibility for use my frontend.

What I imagine:

details: {
      bio: {
        type: String,
        default: '',
        visibility: 'public'
      },
      otherName: {
        type: String,
        default: '',
        visibility: 'private'
      },
    }

What I think is possible:

details: {
      workPlace: {
        value: {
          type: String,
          default: "McDonald's",
        },
        visibility: {
          type: String,
          enum: ['public', 'friends', 'private'],
          default: 'public',
        },
      },
    }

However, the in the latter method the value will be nested one extra level. Can I achieve what I’m attempting without that extra level of nesting somehow?