Can a Design Sequence be included in a UDF?

I've tried to create a UDF that includes a Design Sequence and I'm getting an error stating that some elements are Datum Features. Those elements are the published features from my design sequence.
 

Is there a way to bypass this issue?