refactored the homebrew application install to be DRY'