Generalize setting the specified function
Generalize setting the specified function

Use a function to set up the wrapper function and call it properly.

Signed-off-by: mulhern <7b51bcf507bcd7afb72bf8663752c0ddbeb517f6@redhat.com>

stratis-storage/stratis-cli,stratis-storage/stratis-cli