extract priorityoptions to factory