Move formatting functionality in a seprate class