Rules context creation - Layers definition