Refactor prior_formatter_result
and its usage
#14987
Merged
prior_formatter_result
and its usage
#14987