[CA-39589] Refactoring: flattens a number of nested function applications.
[CA-39589] Refactoring: flattens a number of nested function applications.

Signed-off-by: Jonathan Knowles <47466d50a94574c6fb872a0e5feec104dcb68f29@eu.citrix.com>
Acked-by: Marcus Granado <f2506661fc914d5b5e0300ccfce3bf5242221db6@eu.citrix.com>

simonjbeaumont/xcp-rrdd,djs55/xcp-networkd,koushikcgit/xcp-rrdd,djs55/xcp-rrdd,koushikcgit/xcp-rrdd,johnelse/xcp-rrdd,koushikcgit/xcp-rrdd,johnelse/xcp-rrdd,djs55/xcp-rrdd,koushikcgit/xcp-networkd,robhoes/squeezed,sharady/xcp-networkd,sharady/xcp-networkd,koushikcgit/xcp-networkd,simonjbeaumont/xcp-rrdd,djs55/squeezed,djs55/xcp-networkd