This moves the functions used by normalize_projects_yaml.py out for the purposes of being imported by multiple scripts. Change-Id: I76a93124fdbe13bce34a0c5073fa66bc86806c0a