Make attachToActivity deprecated