[WIP] Refactor setup

https://github.com/erdc-cm/proteus/pull/100 Take two.