It is shown that, in a variety which does not contain all metabelian groups and is contained in a product of (finitely many) varieties each of which is soluble or locally finite, every group is an extension of a group of finite exponent by a nilpotent group by a group of finite exponent.