Moving pruning functions elsewhere