Extract method for parsing schedule records

Replace unique_ptr with shared_ptr