Remove dependencies in afp view. #323