This is needed for multiple-output derivations, where it is desirable to propagate deps and setup-hooks into $dev instead of $out. Also drop an unused simple function which will not even make sense.