VDI.create: remove boilerplate through functorisation

Signed-off-by: David Scott <dave.scott@citrix.com>