Extract configuration into a dedicated helper
Extract file helpers into a dedicated helper
Cleanup