Refactor the way we call the tornado ioloop