removed some code that has been merged into symfony

see https://github.com/symfony/symfony/pull/7857