Refactor out a prepare Drush command method to allow for better test coverage.