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

/reviewed-on !1014
4 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds