Factor out formatters
Move App to main