Improving usage of Symfony request object