Refactoring parameters and config code to their own folders