This removes invisible actions from the a11y tree. Visible ones are still duplicated though, but that's a separate issue.