Influence Functions for Preference Dataset Pruning