Applied smart pointers to ASF related classes