Refactor AssignmentPanel to make it easier to work with.