Split resolution of dependencies and creation of instances (with tests).