SERVER-14763 Refactor sharding/split_large_key.js

Closes #731

Signed-off-by: Benety Goh <benety@mongodb.com>