Refactor console applications on top of symfony/console