Simplify registerRule