Extracting policies