Simplify usage of createFactory
Log API responses