CP-20456: Replace custom function by List.filter_map
CP-20456: Replace custom function by List.filter_map

Signed-off-by: Rob Hoes <8783b3376fb07d39edffc8d7da68a6de3874a7e6@citrix.com>

srowe/xen-api,srowe/xen-api,srowe/xen-api,Frezzle/xen-api,srowe/xen-api,euanh/xen-api,Frezzle/xen-api,euanh/xen-api,euanh/xen-api,euanh/xen-api,srowe/xen-api,euanh/xen-api,Frezzle/xen-api,Frezzle/xen-api,Frezzle/xen-api,euanh/xen-api