Reduce nesting