Refactor FavorSprintf cop using all_positions