Refactor prepare vagrant commands