Cleans up repeated code in SessionPanel.java

There's still (a lot) more work to be done refactoring this class, but removing copy pasted code is a start.