How weight loss can help with pain management