rules phrases refactoring