Move functions and constants to util files (mac)

When building using jumbo, files gets merged and functions and
constants with the same name may end up in the same scope.
This commits moves such functions and constants to shared
util files.

Bug: 803406
Change-Id: I3a0d763741c3d6b631539fdfe51f8fddc0b255a0
Reviewed-by: Avi Drissman <>
Reviewed-by: Sidney San Martín <>
Commit-Queue: Oscar Johansson <>
Cr-Commit-Position: refs/heads/master@{#576502}
24 files changed