Refactored all IMS policies to use XACML