refactor rebuildFilterBanks