Separate config files for dev and production. Refactoring.