Extracts the attribute into a separate list.