Remove redundant socket creation. DRY^2