Arch-Refine: Round1 Refactor the pattern formatter plugin.