Refactor server logic away from connection logic