Refactor Format literal to Formatter class that keeps precision stored.