Refactoring symfony 2 demo application integration