Refactor release deployment