As a tool for composability, I have a function that takes a class constructor argument and returns a function that uses the arguments it is passed to construct an instance o