[HttpKernel] remove legacy duplicated code
[HttpKernel] remove legacy duplicated code

Finishes reverting part of 227ac77f11ae8c420d486891f7e5138ca470997a
in 4f020b5686a226f92da2869d11643a559bec826d

symfony/HttpKernel,symfony/http-kernel