Handle nested definition tags