Pull out function for handling CompositeErrors.