Add validation of original policy.

In order to do so, some of the policy bits needed to be better handled.
There were broken into smaller functions to get the data more easily. It
allowed it to be sanitized properly.