Wrapped factory call in block