Factorization of the currency info display code