An abstract disintegration theorem