Fixes #8585: Remove unused configuration and unneeded functions.