Move some of the functions to use there openstack/common counterparts.