upgrader: make upgrader pass coding style test

Change upgrader internal API to use `filter_dict` instead of `filter`
which is a builtin.
Remove a lot of unused code in extensions
3 jobs for fix/upgrader_coding_style in 0 seconds