Moved attribute based config loading to a separate class