MDL-38661 Hide collapse/expand if unapplicable