Make application helper use config.
Refactor.
Formatting.