Cleans up parts of SessionPanel.java

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