EZP-22370: [eZPublishLegacyBundle] refactored the LegacyResponseManager

Refactored the `LegacyResponseManager` class to move some code into the `LegacyResponse` class where it is more appropriate.