Please place the method after the method which uses it. And rename it to `getAbsoluteUrlWithParamsDataProvider` so it can be clearly seen by the method itself what it is for.

Then squash all that to create nice commit history and it will be ready to merge.

Besides have you verified that made change really does work on your project too?