When Contracting Out Government Functions