Refactor

* don't duplicate playtest/release in local variables
* removed unused variables
* put all OpenRA helpers in one file