There is no need to have this function anymore because 2007 endpoint is not available anymore. To get information you will have to use Organization.svc or OrganizationData.svc endpoints. Check following article -
http://msdn.microsoft.com/en-us/library/gg490659.aspx