Improve BaseDeployment class and reduce business logic in subclasses.