Instantiate task classes respecting dependency ordering