Remove unneeded preferences if device is wifi only

Change-Id: I27799f20767b1482cc97df648fbf84a2a19dc5cf