Code to decompose KIDS builds into sepearate globals for each KIDS build; and conv to PM format