Remove unnecessary socket constructor