Modularization Techniques for Active Rules Design