Extracting common function into utils

Extracting common metering functins into utils/metering so
they can be reused in multiple places.
Moving old utils file under utils directory.

Change-Id: Id45b6237a68a894721e1b2051f64192781f02f8f