Hygiene: Remove redundant code in getDefaultModules

Change-Id: If3f156c7f232262d487baee62906cf516a762af7