Unify irregular rules and simply code.