Pass bundle to the build_filters function