take the trouble of (doing something)
To make the effort or go out of one's way to do something. Oh, you didn't have to take the trouble of preparing the guest bedroom for me—I could have just slept on the couch! Your father took the trouble of cooking this delicious meal, and now you are going to sit down and eat it!