Refactoring redeploy to be executed with .dodeploy marker