Factor http things out of game