How is type 2 diabetes treated?