Pass the hooks as arguments to executeConfigComponents

Passing arguments as part of the state is ugly.