Generate rule builders