This was an idea from @AlexJones0 [here](https://github.com/lowRISC/dvsim/pull/146#discussion_r3030286872) and should allow us to get rid of quite a bit of repeated code in deploy.py.