Applied smart pointers to DSF related classes.