Revert "Revert "Revert "Fix of Func<T> dependency as parameter."""

This reverts commit 37b399f292f2695f021228d8bf2c08281a9f896f.