Extracted code from DeployView to DeployViewGraphics.

After deploying (successfully or not) the old deployment will be deleted.