Split off some code into new formatFieldValue() method