Refactoring hooks to use the main settings.env.json file