Optimized stylus rules to better use nesting