[tor-commits] [exonerator/master] Move more code to helper functions.