Modified create VM service and extract method