Spahn monads, operads, algebraic theories, substitution