Split yaml objects into 2 parts, objects and components.