The algebraic structure of a cosmological term in spherically symmetric solutions