Move some logic and UI to GroupPane.