SERVER-14763 Refactor sharding/split_large_key.js

Closes #731

Signed-off-by: Benety Goh <benety@mongodb.com>
(cherry picked from commit c13eefdea68c0d493892014d42d8c4bbe687d4c3)