Add namespace support for Rule.