We unfortunately don’t have a great way to do this currently. This old feature request describes the functionality we’d need:
See also: