TabPane: small refactoring around detachable tabs