Move response finalization to codec