Refactor PMD audit rules.