Create chaining APIs from functions