Refactor the spec formatters