refactor rule ftl