The cyclomatic complexity of the setup method was greater than 10 and reducing this complexity allows for easier understanding of the method. Change-Id: I45d085d0943fd18a4207fc7a9ba64f2c0f8074ea Partial-Bug: #1501331