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

This reverts commit 7e9f93e2e0b3eb7e8ce9d7e8906fbb43373eab5c.