[FEATURE] Moved the configuration object to constructor for DI