Hide empty staves?

The key is to switch on the ‘Allow individual staves of multi-staff instruments to be hidden’ checkbox on the Vertical Spacing page of Layout Options.