Small generalization of local operator in diagrams backend.