helper: Minor refactoring in console.cpp
helper: Minor refactoring in console.cpp

Just because.


Former-commit-id: 30eb2cb35557c3b3a97e94af3b1f92c26fd68a5e
hdeling/sofa,Anatoscope/sofa,hdeling/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,FabienPean/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,hdeling/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,FabienPean/sofa,Anatoscope/sofa,Anatoscope/sofa,hdeling/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa