Extracted config, hooks and routes to their own files