Handle domain nesting.