Decouple rules manager from ATG