Fix the cart validation issue
Remove unused use statements in DI extension