UIDevice: remove unneeded speedcategory 1 and refactored the code

1 job for master in 0 seconds (queued for 14 seconds)
Status Job ID Name Coverage
  External
failed jenkins

00:03:41