[PrettyOutput] Reduced duplication by creating PrettyOutput module.