Refactored agent policies to use XACML