Refactor Rule.