Code Cleanup: Removing unnecessary usage of IConfiguration