Converting between data and UI policies