Remove duplicate code from Setup.php

Change-Id: I6dadb12ec8410258d7c9c24e1d12badf6c1c2dea