Refactor presets to handle custom formatting.