Extracted application specific display formatting part to a function.