Understanding animal psychology facilitates handling livestock