genesys: Remove manual allocations
This PR removes few of the remaining manual allocations throughout the backend and replaces by automatic equivalents that are much easier to get right consistently.
This PR removes few of the remaining manual allocations throughout the backend and replaces by automatic equivalents that are much easier to get right consistently.