afs: Slight restructuring in afs_Analyze