Refactoring and use knp console