refacto(instance): move source tree manipulation

Closes #3576984

Merge request reports

Loading