This makes a couple of procedure-specific parts into methods in `locale-compare`, so that they can be tested more readily.