Handle migration of policies

- create util functions to handle merging of octets and offsets into one offset
- Stable, complete policy migration.