Revelation about weight loss and diet mentality

This morning, I had a revelation about my weight loss goal. I have been trying to get back to the weight that I was in college (and I am about halfway there but it is getting much harder). I realized though that the only reason I want to lose the weight is because I think it will make me feel happy and carefree like I was at that time. But being thin was not the reason I was happy and carefree. Thoughts created those feelings and those feelings caused the action of taking care of myself and staying at an ideal weight. My questions is: why am I focusing so much on the protocol and the food and urges? Shouldn’t I be focusing on the thought work? I guess I realized that I am still in diet mentality and focusing 100% on the food and exercise, which is making me feel terrible. How can I overcome this diet mentality?