Refactoring `prepare_vhost` to reduce Assignment Branch Condition size (per rubocop).