convertFlagsToKeys uses EntityTypes.getDefinedConfigKeys, which in turn uses EntityDynamicType. There's no equivalents for policies. Should this be done as a separate exercise? In the mean time, I'll drop the existing logic into a toCorePolicySpec method