Simplify the dependency handling
Summary:
We don't need the lambdas anymore, this can be done purely based on type
introspection now that the fetch type enum is gone.
Reviewers: bensi, dfaure
Differential Revision: https://phabricator.kde.org/D18064