Apply smart pointers to ASF related classes