Remove unused kwargs

Fixes #7213.
Merge pull request #7228 from terminalmage/issue7213

Remove unused kwargs