Remove direct coupling with IConfiguration

Read all options in IConfiguration stored under key "EntityFramework:ContextName" in DbContextOptions.
Get ConnectionString & SqlServer:MaxBatchSize from DbContextOptions removing coupling with IConfiguration.
It doesn't seem like keyPrefix is anything other than empty string and therefore isn't really used. Can this code be removed?