Refactor the key-value formatter spec to use shared examples, refs roidrage/lograge#47