Secession of a distance duchy to improve maintenance, due to distance from capital and/or realm size, is explicitly permitted.
The forbidden strategic benefit is specifically and solely the one OOC benefit that the capital has over other cities in the realm: recruitment.
Where is it "explicitly" permitted, exactly?
And this secession does allow precisely that: recruitment on the enemy capital's doorstep.