I think the
 opFactory.register('CustomOp1', customOpsFactory.createOp1);
is very clear and since you're happy with either, i'll leave the code as is.