DisplayHelper#pretty_format remove nested if/else from case statement