How to duplicate conditions across categories?