This SPI should be improved in the future. The main mechanism we have for passing state between deployment phases is the attachment mechanism. This service builder is really owned by the DUP chain, and so it should really be the one responsible for setting up dependencies.