Their excretory function is to eliminate metabolic wastes such as urea.
(Their excretory function; is; to eliminate metabolic wastes such as urea)
Their excretory function
is
to eliminate metabolic wastes such as urea