[Follow up]: Create universal fromYaml method for all policy types

The following discussion from !181705 (merged) should be addressed: