Fix #1421 by decomposing profiles into collections of atomic profiles.